public enum Figura {
    f2(2), f3(3), f4(4), f5(5), f6(6), f7(7), f8(8), f9(9), f10(10),
    walet(11), dama(12), krol(13), as(14);

    private final int value;
    private Figura(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }
}
